package activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;

import com.example.intellifit.R;

public class BodyweightActivity_view extends Activity implements OnClickListener{

	private Button squatBtn;
	private Button sitUpsBtn;
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		  super.onCreate(savedInstanceState);
		  setContentView(R.layout.view_selectworkoutbodyweight);
		  
		  squatBtn = (Button)findViewById(R.id.squatBtn);
		  squatBtn.setOnClickListener(this);	
		  
		  sitUpsBtn = (Button)findViewById(R.id.sitUpsBtn);
		  sitUpsBtn.setOnClickListener(this);
		  
	}


	@Override
	public void onClick(View v) {
		
		if(v == squatBtn){
			Intent i = new Intent(this, RepetitionsActivitySquats.class);
			//i.putExtra("EXERCISE_TYPE", ExercisesEnum.BICEP_CURLS);
			startActivity(i);
			
		}else if(v == sitUpsBtn){
			Intent i = new Intent(this, RepetitionsActivitySitUps.class);
			//i.putExtra("EXERCISE_TYPE", ExercisesEnum.BICEP_CURLS);
			startActivity(i);
		}
		
	}

}
